﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="LogisticsVision.Prototype.JsRemoteInvoke.Inventory.Portal.Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript">
    function divShow(value)
    {
        if(value != "")
        {
			var id=value.substring(0,4);
			var content=value.substring(5,value.length);
			document.getElementById(id).innerHTML = "";
			document.getElementById(id).innerHTML =   document.getElementById(id).innerHTML +"<BR/>"+ content;
			
			if (content.indexOf("公司类型") > 0)
			{
				init();
			}
        }
    }
    
    function clearDiv(id)
    {
        document.getElementById(id).innerHTML = "";
    }
    
    

var where = new Array(3);  
function comefrom(loca,locacity) 
{ 
    this.loca = loca; this.locacity = locacity; 
}  
where[0]= new comefrom('请选择省份名','请选择城市名'); 
where[1] = new comefrom('北京','|东城|西城|崇文|宣武|朝阳|丰台|石景山|海淀|门头沟|房山|通州|顺义|昌平|大兴|平谷|怀柔|密云|延庆');  
where[2] = new comefrom('上海','|黄浦|卢湾|徐汇|长宁|静安|普陀|闸北|虹口|杨浦|闵行|宝山|嘉定|浦东|金山|松江|青浦|南汇|奉贤|崇明');   

function select() 
{ 
    with(province) { var loca2 = options[selectedIndex].value; } 
    for(i = 0;i < where.length;i ++) 
    { 
        if (where[i].loca == loca2) 
        { 
			loca3 = (where[i].locacity).split('|'); 
			for(j = 0;j < loca3.length;j++) 
			{ 
				with(city) 
				{ 
					length = loca3.length; 
					options[j].text = loca3[j]; 
					options[j].value = loca3[j]; 
					var loca4=options[selectedIndex].value;
				}
			} 
			break; 
		}
	} 
	newlocation.value=loca2+loca4; 
}

function init() 
{ 
	with(province) 
	{ 
		length = where.length; 
		for(k=0;k<where.length;k++) { options[k].text = where[k].loca; options[k].value = where[k].loca; } 
		options[selectedIndex].text = where[0].loca; options[selectedIndex].value = where[0].loca; 
	} 
	with(city) 
	{ 
		loca3 = (where[0].locacity).split('|'); 
		length = loca3.length; 
		for(l=0;l<length;l++) { options[l].text = loca3[l]; options[l].value = loca3[l]; } 
		options[selectedIndex].text = loca3[0]; options[selectedIndex].value = loca3[0]; 
	}
} 
</script>
</head>
<body>
    <div>
    
        <font color="blue" size="5" >注册</font><br><br>
    
    </div>
        <tr height='20' style='height:15.0pt'>
            <td height='20'>
                会员登录名</td>
            <td colspan='3'>
                <input id='Text1' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20' style='height:15.0pt'>
            <td height='20'>
                密码</td>
            <td colspan='3'>
                <input id='Text2' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20' style='height:15.0pt'>
            <td height='20'>
                重复密码</td>
            <td colspan='3'>
                <input id='Text3' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <br><br>
    <font color="blue" size="5" >根据用户类型填写注册详细信息</font><br>    
    <select id="Select1" name="D1" onchange="divShow(value)">
		<option value="">请选择用户类型</option>
		<option value="port,
		<tr height='20'>
            <td height='20'>
                公司类型</td>
            <td colspan='2'>
                <select id='Select2' name='D1'>
                <option value = ''>请选择</option> 
                <option value ='company'>企业单位</option>
                <option value ='single'>个体经营</option>
                <option value ='social'>事业单位或者社会团体</option>
                <option value ='user'>个人</option>
                </select></td>
            <td >
                </td>
            <td>
            </td>
        </tr><br><br>
		<tr height='20'>
            <td height='20'>
                公司名称</td>
            <td colspan='4'>
                <input id='Text39' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
		<tr height='20'>
            <td height='20'>
                公司所在地</td>
            <td>
				省份 <select name='province' onChange = 'select()'></select> 
				城市<select name='city' onChange = 'select()'></select>
				我在 <input type=text name='newlocation' maxlength=12 size=12 style='font-weight: bold'>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20'>
            <td height='20'>
                经营地址</td>
            <td colspan='4'>
                <input id='Text40' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20'>
            <td height='20'>
                主营行业</td>
            <td colspan='3'>
                <input id='Text41' type='text' /></td>
            <td>
            </td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20'>
            <td height='20'>
                电子邮箱</td>
            <td colspan='4'>
                <input id='Text42' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20'>
            <td height='20'>
                固定电话</td>
            <td>
                <input id='Text43' type='text' /></td>
            <td>
                <input id='Text44' type='text' /></td>
            <td colspan='2'>
                <input id='Text45' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20'>
            <td height='20'>
                传真</td>
            <td>
                <input id='Text46' type='text' /></td>
            <td>
                <input id='Text47' type='text' /></td>
            <td colspan='2'>
                <input id='Text48' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20'>
            <td height='20'>
                联系人1</td>
            <td colspan='2'>
                <input id='Text49' type='text' /></td>
            <td colspan='2'>
                <input id='Text50' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20'>
            <td height='20'>
                联系人2</td>
            <td colspan='2'>
                <input id='Text51' type='text' /></td>
            <td colspan='2'>
                <input id='Text52' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20'>
            <td height='20'>
                联系人3</td>
            <td colspan='2'>
                <input id='Text53' type='text' /></td>
            <td colspan='2'>
                <input id='Text54' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        ">企业用户</option>
		
		<option value="port,
		<tr height='20' style='height:15.0pt'>
            <td height='20'>
                真实姓名<span style='mso-spacerun:yes'>&nbsp;</span></td>
            <td colspan='2'>
                <input id='Text28' type='text' /></td>
            <td>
                <input id='Radio7' checked='checked' name='R1' type='radio' value='V1'>男</input></td>
            <td>
                <input id='Radio8' checked='checked' name='R2' type='radio' value='V1'>女</input></td>
        </tr><br><br>
		<tr height='20' style='height:15.0pt'>
            <td height='20'>
                职位</td>
            <td colspan='3'>
                <input id='Text29' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20' style='height:15.0pt'>
            <td height='20'>
                电子邮箱</td>
            <td colspan='3'>
                <input id='Text30' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20' style='height:15.0pt'>
            <td height='20'>
                固定电话</td>
            <td>
                <input id='Text31' type='text' /></td>
            <td>
                <input id='Text32' type='text' /></td>
            <td>
                <input id='Text33' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20' style='height:15.0pt'>
            <td height='20'>
                传真</td>
            <td>
                <input id='Text34' type='text' /></td>
            <td>
                <input id='Text35' type='text' /></td>
            <td>
                <input id='Text36' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20' style='height:15.0pt'>
            <td height='20'>
                手机</td>
            <td colspan='3'>
                <input id='Text37' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        <tr height='20' style='height:15.0pt'>
            <td height='20'>
                所在公司</td>
            <td colspan='3'>
                <input id='Text38' type='text' /></td>
            <td>
            </td>
        </tr><br><br>
        ">个人用户</option>
	</select>
	<div id="port">
	</div>
	<br><br>
	<font color="blue" size="2" >点击阅读服务条款</font><br><br>
	<input id="Checkbox1" type="checkbox" >我愿意收到我感兴趣的信息</input><br><br>
	<input id="Button1" type="button" value="同意服务条款，提交注册信息"/>
</body>
</html>
